<template>
  <swiper class="swiper-detail">
    <swiper-item v-for="(item, index) in topImg" :key="index">
      <img :src="item" alt="" />
    </swiper-item>
  </swiper>
</template>

<script>
import { swiper, swiperItem } from "components/common/swiper/index";

export default {
  name: "swiperDetail",
  props: {
    topImg: {
      type: Array,
    },
  },
  components: {
    swiper,
    swiperItem,
  },
};
</script>

<style scoped>
.swiper-detail {
  width: 100%;
  height: 300px;
  overflow: hidden;
}
</style>